:root {
--ph-glass: rgba(20, 18, 38, 0.72);
--ph-glass-strong: rgba(14, 12, 28, 0.92);
--ph-line: rgba(255, 255, 255, 0.08);
--ph-line-soft: rgba(255, 255, 255, 0.05);
--ph-pink: #ff2e74;
--ph-pink-soft: #ff6b9d;
--ph-blue: #2f9bff;
--ph-green: #35d07f;
--ph-gold: #ffce45;
--ph-me: linear-gradient(135deg, #ff2e74, #ff5e9a);
--ph-her: rgba(255, 255, 255, 0.09);
}
#phone-fab.hidden { display: none; }
#phone-toast-layer {
position: fixed; top: 14px; left: 0; right: 0;
z-index: 10075; display: flex; flex-direction: column;
align-items: center; gap: 8px; pointer-events: none;
}
.ph-toast {
pointer-events: auto;
max-width: 340px; width: calc(100% - 28px);
display: flex; align-items: center; gap: 10px;
padding: 10px 12px;
background: var(--ph-glass-strong);
backdrop-filter: blur(14px);
border: 1px solid var(--ph-line);
border-radius: 16px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
transform: translateY(-140%);
animation: phToastIn 0.35s cubic-bezier(.2,.9,.3,1.2) forwards;
cursor: pointer;
}
.ph-toast.ph-out { animation: phToastOut 0.3s ease forwards; }
@keyframes phToastIn { to { transform: translateY(0); } }
@keyframes phToastOut { to { transform: translateY(-160%); opacity: 0; } }
.ph-toast__avatar {
width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
background-size: cover; background-position: center top;
background-color: #2a2740;
display: flex; align-items: center; justify-content: center;
font-size: 20px;
}
.ph-toast__body { min-width: 0; flex: 1; }
.ph-toast__title { font: 700 13px system-ui, sans-serif; color: #fff; display: flex; justify-content: space-between; }
.ph-toast__title .ph-toast__tag { color: var(--ph-pink-soft); font-weight: 600; font-size: 11px; }
.ph-toast__text { font: 400 12px system-ui, sans-serif; color: #c9c4e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#phone-overlay {
position: fixed; inset: 0; z-index: 10050;
display: flex; align-items: center; justify-content: center;
background: radial-gradient(120% 120% at 50% 0%, rgba(40, 10, 40, 0.55), rgba(0, 0, 0, 0.82));
backdrop-filter: blur(6px);
opacity: 0; pointer-events: none;
transition: opacity 0.22s ease;
}
#phone-overlay.open { opacity: 1; pointer-events: auto; }
#phone-overlay.hidden { display: none; }
.ph-device {
position: relative;
width: min(390px, 94vw);
height: min(800px, 92vh);
background: linear-gradient(160deg, #0e0c1a 0%, #14101f 60%, #1a1226 100%);
border-radius: 42px;
padding: 12px;
box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7),
inset 0 0 0 2px rgba(255, 255, 255, 0.06),
inset 0 0 0 8px #05040a;
transform: translateY(24px) scale(0.97);
transition: transform 0.3s cubic-bezier(.2,.9,.3,1.1);
}
#phone-overlay.open .ph-device { transform: translateY(0) scale(1); }
.ph-screen {
position: relative;
width: 100%; height: 100%;
border-radius: 32px;
overflow: hidden;
background:
radial-gradient(90% 60% at 20% -10%, rgba(255, 46, 116, 0.18), transparent 60%),
radial-gradient(90% 60% at 100% 0%, rgba(47, 155, 255, 0.16), transparent 55%),
linear-gradient(180deg, #16121f, #0d0a15);
display: flex; flex-direction: column;
}
.ph-notch {
position: absolute; top: 0; left: 50%; transform: translateX(-50%);
width: 140px; height: 26px;
background: #05040a; border-radius: 0 0 16px 16px; z-index: 30;
}
.ph-notch::after {
content: ''; position: absolute; right: 26px; top: 9px;
width: 8px; height: 8px; border-radius: 50%;
background: radial-gradient(circle at 35% 35%, #3a5, #063 70%);
box-shadow: -18px 0 0 -2px #1a1a2a;
}
.ph-statusbar {
height: 40px; flex-shrink: 0;
display: flex; align-items: center; justify-content: space-between;
padding: 0 22px; padding-top: 4px;
font: 600 13px system-ui, sans-serif; color: #fff; z-index: 20;
}
.ph-statusbar .ph-sb-right { display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.ph-home-indicator {
position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
width: 128px; height: 5px; border-radius: 3px;
background: rgba(255, 255, 255, 0.35); z-index: 40; cursor: pointer;
}
.ph-close-x {
position: absolute; top: 46px; right: 16px; z-index: 45;
width: 30px; height: 30px; border-radius: 50%;
border: none; cursor: pointer;
background: rgba(255, 255, 255, 0.09); color: #fff;
font-size: 16px; line-height: 30px; text-align: center;
display: none;
}
.ph-view--app .ph-close-x { display: none; }
.ph-body { flex: 1; position: relative; overflow: hidden; }
.ph-view {
position: absolute; inset: 0;
display: none; flex-direction: column;
background:
radial-gradient(90% 55% at 15% -8%, rgba(255, 46, 116, 0.12), transparent 60%),
radial-gradient(90% 55% at 100% 0%, rgba(47, 155, 255, 0.10), transparent 55%),
linear-gradient(180deg, #16121f 0%, #0d0a15 100%);
}
#ph-view-home { background: transparent; }
.ph-view.active { display: flex; animation: phViewIn 0.26s cubic-bezier(.3,.8,.3,1); }
@keyframes phViewIn {
from { transform: translateX(12%); opacity: 0; }
to   { transform: none; opacity: 1; }
}
#ph-view-home.active { animation: phHomeIn 0.22s ease; }
@keyframes phHomeIn { from { opacity: 0; } to { opacity: 1; } }
.ph-home-top { padding: 10px 20px 4px; }
.ph-home-clock { font: 200 58px system-ui, sans-serif; color: #fff; letter-spacing: 1px; line-height: 1; }
.ph-home-date { font: 500 14px system-ui, sans-serif; color: rgba(255,255,255,0.7); margin-top: 2px; }
.ph-home-grid {
flex: 1; align-content: start;
display: grid; grid-template-columns: repeat(4, 1fr);
gap: 18px 6px; padding: 26px 18px;
}
.ph-app-icon {
display: flex; flex-direction: column; align-items: center; gap: 6px;
cursor: pointer; border: none; background: none; padding: 0;
-webkit-tap-highlight-color: transparent;
}
.ph-app-icon__badge-host { position: relative; }
.ph-app-icon__tile {
width: 60px; height: 60px; border-radius: 16px;
display: flex; align-items: center; justify-content: center;
font-size: 30px;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
transition: transform 0.14s ease;
}
.ph-app-icon:active .ph-app-icon__tile { transform: scale(0.9); }
.ph-app-icon__label { font: 500 12px system-ui, sans-serif; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.ph-app-icon__count {
position: absolute; top: -6px; right: -6px;
min-width: 20px; height: 20px; padding: 0 5px;
border-radius: 10px; background: var(--ph-pink); color: #fff;
font: 700 11px/20px system-ui, sans-serif; text-align: center;
border: 2px solid #0d0a15; display: none;
}
.ph-app-icon__count.show { display: block; }
.ph-tile--msg { background: linear-gradient(160deg, #ff2e74, #b3164d); }
.ph-tile--conq { background: linear-gradient(160deg, #b76bff, #6a2ec7); }
.ph-tile--mission { background: linear-gradient(160deg, #2f9bff, #1361c8); }
.ph-tile--ach { background: linear-gradient(160deg, #ffce45, #e39400); }
.ph-tile--stats { background: linear-gradient(160deg, #35d07f, #148a53); }
.ph-appbar {
flex-shrink: 0; height: 52px;
display: flex; align-items: center; gap: 8px;
padding: 0 12px;
background: var(--ph-glass-strong);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--ph-line);
}
.ph-back {
border: none; background: none; cursor: pointer; color: var(--ph-blue);
font: 600 15px system-ui, sans-serif; display: flex; align-items: center; gap: 2px;
padding: 6px 4px; -webkit-tap-highlight-color: transparent;
}
.ph-back svg { width: 20px; height: 20px; }
.ph-appbar__title { font: 700 17px system-ui, sans-serif; color: #fff; flex: 1; }
.ph-appbar__title small { display: block; font: 400 11px system-ui, sans-serif; color: rgba(255,255,255,0.55); }
.ph-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.ph-scroll::-webkit-scrollbar { width: 0; }
.ph-conv {
display: flex; align-items: center; gap: 12px;
padding: 12px 14px; cursor: pointer;
border-bottom: 1px solid var(--ph-line-soft);
transition: background 0.12s;
}
.ph-conv:active { background: rgba(255,255,255,0.05); }
.ph-avatar {
width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
background-size: cover; background-position: center top; background-color: #2a2740;
display: flex; align-items: center; justify-content: center; font-size: 24px;
position: relative;
box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}
.ph-avatar__dot {
position: absolute; top: -2px; right: -2px; width: 15px; height: 15px;
border-radius: 50%; background: var(--ph-pink); border: 2px solid #0d0a15; display: none;
}
.ph-conv.unread .ph-avatar__dot { display: block; }
.ph-conv__body { flex: 1; min-width: 0; }
.ph-conv__row { display: flex; justify-content: space-between; align-items: baseline; }
.ph-conv__name { font: 700 15px system-ui, sans-serif; color: #fff; }
.ph-conv__time { font: 400 12px system-ui, sans-serif; color: rgba(255,255,255,0.4); }
.ph-conv__preview { font: 400 13px system-ui, sans-serif; color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ph-conv.unread .ph-conv__preview { color: rgba(255,255,255,0.9); font-weight: 500; }
.ph-conv__role { display: inline-block; font: 600 10px system-ui, sans-serif; color: var(--ph-pink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.ph-conv__heat { margin-left: 6px; }
.ph-chat-head { display: flex; align-items: center; gap: 10px; flex: 1; }
.ph-chat-head .ph-avatar { width: 36px; height: 36px; font-size: 18px; }
.ph-chat-head__info { line-height: 1.15; }
.ph-chat-head__name { font: 700 15px system-ui, sans-serif; color: #fff; }
.ph-chat-head__status { font: 400 11px system-ui, sans-serif; color: var(--ph-green); }
.ph-thread {
flex: 1; overflow-y: auto; padding: 14px 12px 6px;
display: flex; flex-direction: column; gap: 8px;
}
.ph-thread::-webkit-scrollbar { width: 0; }
.ph-day-sep { text-align: center; font: 600 11px system-ui, sans-serif; color: rgba(255,255,255,0.4); margin: 8px 0; }
.ph-bubble {
max-width: 78%; padding: 9px 13px; border-radius: 18px;
font: 400 14.5px system-ui, sans-serif; line-height: 1.35;
word-wrap: break-word; animation: phBubbleIn 0.22s ease;
position: relative;
}
@keyframes phBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ph-bubble--her {
align-self: flex-start; background: var(--ph-her); color: #f2eefc;
border-bottom-left-radius: 5px;
}
.ph-bubble--me {
align-self: flex-end; background: var(--ph-me); color: #fff;
border-bottom-right-radius: 5px;
}
.ph-bubble__time { display: block; font-size: 10px; opacity: 0.55; margin-top: 3px; text-align: right; }
.ph-bubble--photo { padding: 5px; max-width: 76%; }
.ph-photo {
display: block; width: 100%; max-height: 260px; object-fit: cover;
border-radius: 13px; cursor: zoom-in; background: rgba(0,0,0,0.35);
}
.ph-photo__cap { font-size: 12.5px; line-height: 1.35; padding: 6px 7px 2px; }
.ph-lightbox {
position: absolute; inset: 0; z-index: 60; display: flex;
align-items: center; justify-content: center; padding: 18px;
background: rgba(0, 0, 0, 0.9); cursor: zoom-out;
animation: phFade 0.18s ease;
}
.ph-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.ph-lightbox__close {
position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
border: none; border-radius: 50%; cursor: pointer; font-size: 15px;
color: #fff; background: rgba(255, 255, 255, 0.16);
}
@keyframes phFade { from { opacity: 0; } to { opacity: 1; } }
.ph-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 15px; background: var(--ph-her); border-radius: 18px; border-bottom-left-radius: 5px; }
.ph-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); animation: phTyp 1s infinite; }
.ph-typing span:nth-child(2) { animation-delay: 0.15s; }
.ph-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes phTyp { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ph-composer {
flex-shrink: 0; padding: 8px 10px 12px;
border-top: 1px solid var(--ph-line);
background: var(--ph-glass-strong);
}
.ph-quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.ph-quick::-webkit-scrollbar { height: 0; }
.ph-quick__chip {
flex-shrink: 0; border: 1px solid var(--ph-line); background: rgba(255,255,255,0.06);
color: #f0ecff; border-radius: 16px; padding: 7px 13px; cursor: pointer;
font: 500 13px system-ui, sans-serif; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.ph-quick__chip:active { background: rgba(255,255,255,0.14); }
.ph-invite-btn {
width: 100%; border: none; cursor: pointer; border-radius: 16px;
padding: 13px; font: 700 15px system-ui, sans-serif; color: #fff;
background: linear-gradient(135deg, #ff2e74, #ff007f);
box-shadow: 0 6px 18px rgba(255, 0, 127, 0.4);
display: flex; align-items: center; justify-content: center; gap: 8px;
animation: phInvitePulse 1.8s ease-in-out infinite;
}
@keyframes phInvitePulse { 0%,100% { box-shadow: 0 6px 18px rgba(255,0,127,0.4); } 50% { box-shadow: 0 6px 26px rgba(255,0,127,0.75); } }
.ph-invite-btn:active { transform: scale(0.98); }
.ph-locked-note {
text-align: center; font: 500 12px system-ui, sans-serif; color: rgba(255,255,255,0.45);
padding: 6px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ph-empty {
flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
text-align: center; padding: 40px 30px; color: rgba(255,255,255,0.55); gap: 10px;
}
.ph-empty__icon { font-size: 46px; opacity: 0.8; }
.ph-empty__title { font: 700 16px system-ui, sans-serif; color: #fff; }
.ph-empty__text { font: 400 13.5px system-ui, sans-serif; line-height: 1.5; }
.ph-conq-hero {
margin: 12px; padding: 16px; border-radius: 20px;
background: linear-gradient(150deg, rgba(183,107,255,0.25), rgba(106,46,199,0.12));
border: 1px solid rgba(183,107,255,0.3);
display: flex; align-items: center; gap: 16px;
}
.ph-conq-hero__num { font: 800 40px system-ui, sans-serif; color: #fff; line-height: 1; }
.ph-conq-hero__lbl { font: 500 13px system-ui, sans-serif; color: rgba(255,255,255,0.7); }
.ph-conq-card {
display: flex; align-items: center; gap: 12px; margin: 0 12px 10px;
padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.04);
border: 1px solid var(--ph-line-soft);
}
.ph-conq-card .ph-avatar { width: 48px; height: 48px; }
.ph-conq-card__name { font: 700 15px system-ui, sans-serif; color: #fff; }
.ph-conq-card__meta { font: 400 12px system-ui, sans-serif; color: rgba(255,255,255,0.55); margin-top: 2px; }
.ph-conq-card__count {
margin-left: auto; text-align: center; padding: 6px 10px; border-radius: 12px;
background: rgba(255,46,116,0.18); color: var(--ph-pink-soft); font: 700 13px system-ui, sans-serif;
}
.ph-conq-card__count small { display: block; font-weight: 500; font-size: 9px; color: rgba(255,255,255,0.5); }
.ph-seg { display: flex; gap: 6px; padding: 10px 12px; }
.ph-seg__btn {
flex: 1; border: 1px solid var(--ph-line); background: rgba(255,255,255,0.04);
color: rgba(255,255,255,0.6); border-radius: 12px; padding: 8px; cursor: pointer;
font: 600 13px system-ui, sans-serif;
}
.ph-seg__btn.active { background: var(--ph-blue); color: #fff; border-color: transparent; }
.ph-mission {
display: flex; align-items: center; gap: 12px; margin: 0 12px 10px;
padding: 13px; border-radius: 16px; background: rgba(255,255,255,0.04);
border: 1px solid var(--ph-line-soft);
}
.ph-mission.done { opacity: 0.7; }
.ph-mission__icon {
width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
display: flex; align-items: center; justify-content: center; font-size: 22px;
background: rgba(47,155,255,0.16);
}
.ph-mission.done .ph-mission__icon { background: rgba(53,208,127,0.18); }
.ph-mission__body { flex: 1; min-width: 0; }
.ph-mission__title { font: 700 14.5px system-ui, sans-serif; color: #fff; display: flex; align-items: center; gap: 6px; }
.ph-mission__desc { font: 400 12.5px system-ui, sans-serif; color: rgba(255,255,255,0.55); margin-top: 2px; line-height: 1.4; }
.ph-mission__reward { font: 600 11px system-ui, sans-serif; color: var(--ph-gold); margin-top: 5px; }
.ph-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-top: 7px; overflow: hidden; }
.ph-progress__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f9bff, #35d07f); transition: width 0.4s ease; }
.ph-mission__check {
width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ph-mission.done .ph-mission__check { background: var(--ph-green); color: #fff; }
.ph-mission:not(.done) .ph-mission__check { border: 2px solid rgba(255,255,255,0.2); }
.ph-ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.ph-ach {
aspect-ratio: 1; border-radius: 16px; padding: 8px;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
text-align: center; background: rgba(255,255,255,0.04); border: 1px solid var(--ph-line-soft);
position: relative;
}
.ph-ach.locked { opacity: 0.4; filter: grayscale(0.8); }
.ph-ach.unlocked { background: linear-gradient(160deg, rgba(255,206,69,0.18), rgba(227,148,0,0.06)); border-color: rgba(255,206,69,0.35); }
.ph-ach__medal { font-size: 30px; }
.ph-ach__name { font: 600 10.5px system-ui, sans-serif; color: #fff; line-height: 1.2; }
.ph-ach.unlocked::after { content: '★'; position: absolute; top: 5px; right: 7px; color: var(--ph-gold); font-size: 12px; }
.ph-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.ph-stat {
padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.04);
border: 1px solid var(--ph-line-soft);
}
.ph-stat__num { font: 800 30px system-ui, sans-serif; color: #fff; line-height: 1; }
.ph-stat__num small { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 600; }
.ph-stat__lbl { font: 500 12px system-ui, sans-serif; color: rgba(255,255,255,0.6); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.ph-stat--wide { grid-column: 1 / -1; }
.ph-stat-bar-row { display: flex; justify-content: space-between; font: 500 12px system-ui, sans-serif; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
.ph-section-title { font: 700 13px system-ui, sans-serif; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; padding: 14px 16px 6px; }
@media (max-height: 680px) {
.ph-home-clock { font-size: 44px; }
.ph-home-grid { padding: 16px; gap: 14px 6px; }
}